package cn.shangqizhenshuai.extend.entity;

import java.util.List;

public class SqlXmlEntity {
    //实体类型的名称
    public List<ResultrefEntity> create_entity_name;
    //返回类型的KEY(参数名称)和value(参数类型)
    public List<ResultrefEntity> parametes_parameter_type;
    //需要导入的sql语句
    public List<ExtendsUpdataeEntity> updatesql = null;
    public List<ExtendsInsertEntity> insertsql = null;
    public List<ExtndsDeleteEntity> deletesql = null;
    public List<ExtendSelectEntity> selectsql = null;
    //

    public List<ResultrefEntity> getCreate_entity_name() {
        return create_entity_name;
    }

    public void setCreate_entity_name(List<ResultrefEntity> create_entity_name) {
        this.create_entity_name = create_entity_name;
    }

    public List<ResultrefEntity> getParametes_parameter_type() {
        return parametes_parameter_type;
    }

    public void setParametes_parameter_type(List<ResultrefEntity> parametes_parameter_type) {
        this.parametes_parameter_type = parametes_parameter_type;
    }

    public List<ExtendsUpdataeEntity> getUpdatesql() {
        return updatesql;
    }

    public void setUpdatesql(List<ExtendsUpdataeEntity> updatesql) {
        this.updatesql = updatesql;
    }

    public List<ExtendsInsertEntity> getInsertsql() {
        return insertsql;
    }

    public void setInsertsql(List<ExtendsInsertEntity> insertsql) {
        this.insertsql = insertsql;
    }

    public List<ExtndsDeleteEntity> getDeletesql() {
        return deletesql;
    }

    public void setDeletesql(List<ExtndsDeleteEntity> deletesql) {
        this.deletesql = deletesql;
    }

    public List<ExtendSelectEntity> getSelectsql() {
        return selectsql;
    }

    public void setSelectsql(List<ExtendSelectEntity> selectsql) {
        this.selectsql = selectsql;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SqlXmlEntity that = (SqlXmlEntity) o;

        if (create_entity_name != null ? !create_entity_name.equals(that.create_entity_name) : that.create_entity_name != null)
            return false;
        if (parametes_parameter_type != null ? !parametes_parameter_type.equals(that.parametes_parameter_type) : that.parametes_parameter_type != null)
            return false;
        if (updatesql != null ? !updatesql.equals(that.updatesql) : that.updatesql != null) return false;
        if (insertsql != null ? !insertsql.equals(that.insertsql) : that.insertsql != null) return false;
        if (deletesql != null ? !deletesql.equals(that.deletesql) : that.deletesql != null) return false;
        return selectsql != null ? selectsql.equals(that.selectsql) : that.selectsql == null;
    }

    @Override
    public int hashCode() {
        int result = create_entity_name != null ? create_entity_name.hashCode() : 0;
        result = 31 * result + (parametes_parameter_type != null ? parametes_parameter_type.hashCode() : 0);
        result = 31 * result + (updatesql != null ? updatesql.hashCode() : 0);
        result = 31 * result + (insertsql != null ? insertsql.hashCode() : 0);
        result = 31 * result + (deletesql != null ? deletesql.hashCode() : 0);
        result = 31 * result + (selectsql != null ? selectsql.hashCode() : 0);
        return result;
    }
}
